package com.lebang.medicalInquiry.mapper;

import com.lebang.medicalInquiry.model.po.Article;
import com.lebang.medicalInquiry.model.po.ArticleClassify;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleClassifyMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ArticleClassify record);

    int insertSelective(ArticleClassify record);

    ArticleClassify selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ArticleClassify record);

    int updateByPrimaryKey(ArticleClassify record);

    List<ArticleClassify> getAllEnable();

    List<ArticleClassify> listByCondition(@Param("keyWord") String keyWord, @Param("state")Integer state, @Param("page")int page, @Param("limit")Integer limit);

    Integer countByCondition(@Param("keyWord") String keyWord, @Param("state")Integer state);

}